<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广东省传播平台-合同详情展开页</title>
<link rel="stylesheet" type="text/css" href="css/common.css" />
<link rel="stylesheet" type="text/css" href="css/tag.css" />
<link rel="stylesheet" type="text/css" href="css/status.css" />
<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="js/status.js"></script>
<link href="js/My97DatePicker/skin/WdatePicker.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript">
		
    
	
	    $(document).ready(function(){
	        var id='#span'+$('#curStatus').val();
	        //alert(id);
	        $(id).html("当前状态");
	    });
	    
		function doDel(projectId)
		{
			if (confirm('确实要删除该条记录吗？'))
			{
				$("#projectId").val(projectId);
				$('#form1').attr("action", "proDel.action");
				$('#form1').submit();
			}
		}
		
		function doEdit(projectId)
		{
			$("#projectId").val(projectId);
			$('#form1').attr("action", "modInit.action");
			$('#form1').submit();
		}
		
		function gotoAddcast()
		{
		   $('#castDetailstatus').val(1);
		   document.updateForm.action="initCastDetailHome.action";
		   document.updateForm.submit();
		}
		
	   $(function(){
          //selectNav('nav3');
       });
	</script>
</head>

<body>
<!-- 顶栏start -->
<jsp:include page="../common/top.jsp"></jsp:include>
<!-- 顶部start -->
<div id="main">
	<div class="body">
		<jsp:include page="../common/nav.jsp"></jsp:include>
		
		<!-- 主体 -->
		<div class="main_body">
		<form id="form1" method="post">
			<s:hidden id="projectId" name="projectId" />
			<s:hidden id="curStatus" name="curStatus" />
			<table class="condition" style="width:100%; font-size:14px; font-weight:bold; color:#000000;" align="center">
				<tr>
					<td>
						<input type="button" class="btn-title" value="新增" onclick="window.location.href='addInit.action'" />
						&nbsp;&nbsp;&nbsp;
						<s:if test="#session.logUser.cityName == #request.project.city">
						<input type="button" class="btn-title" value="编辑" onclick="doEdit('${project.projectId}');" />
						&nbsp;&nbsp;&nbsp;
						</s:if>
						<s:if test="#session.logUser.cityName == #request.project.city">
						<input type="button" class="btn-title" value="删除" onclick="doDel('${project.projectId}');" />
						&nbsp;&nbsp;&nbsp;
						</s:if>
						<input type="button" class="btn-title" value="返回" onclick="window.history.go(-1);" />
					</td>
				</tr>
			</table>
		</form>
			
		<div id="list_div">
			<table class="table_list"  style="width: 100%;">
				<tr class="bg">
					<th colspan="16" style="font-size:15px; padding-left:18px;border-left: 2px solid #f37c20;">项目信息</th>
				</tr>
				<tr class="bg">
					<th style="border-style:solid dashed dashed solid;">项目编号</th>
					<th style="border-style:solid dashed dashed;">项目名称</th>
					<th style="border-style:solid dashed dashed;">项目类型</th>
					<th style="border-style:solid dashed dashed;">归属地市</th>
					<th style="border-style:solid dashed dashed;">开始时间</th>
					<th style="border-style:solid dashed dashed;">结束时间</th>
					<th style="border-style:solid dashed dashed;">部门科室</th>
					<th style="border-style:solid solid dashed dashed;">项目负责人</th>
				</tr>
				<tr style="">
					<td style="border-style:dashed dashed solid solid;" title="${project.projectId}">
					${fn:substring(project.projectId, 0, 5) }
					</td>
					<td style="border-style:dashed dashed solid;" title="${project.projectName}">
					${fn:substring(project.projectName, 0, 5) }
					</td>
					<td style="border-style:dashed dashed solid;" title="${project.projectType}">
					${fn:substring(project.projectType, 0, 5) }
					</td>
					<td style="border-style:dashed dashed solid;">
					  ${fn:substring(project.city, 0, 5) }
					</td>
					<td style="border-style:dashed dashed solid;" title="<fmt:formatDate value="${project.projectStartTime}" type="date" dateStyle="medium"/>" >
					<fmt:formatDate value='${project.projectStartTime}' pattern='yyyy-MM-dd'/>
					</td>
					<td style="border-style:dashed dashed solid;" title="<fmt:formatDate value="${project.projectEndTime}" type="date" dateStyle="medium"/>">
					<fmt:formatDate value='${project.projectEndTime}' pattern='yyyy-MM-dd'/>
					</td>
					<td style="border-style:dashed dashed solid;" title="${project.projectDepartment}">
					    ${project.projectDepartment}
					</td>
					<td style="border-style:dashed solid solid dashed;" title="${project.projectManagerName}">
						${project.projectManagerName}
					</td>
					<!-- <td style="border-style:dashed solid solid dashed;" title="${project.arrangeTime}">
					<fmt:formatDate value='${project.arrangeTime}' pattern='yyyy-MM'/>
					</td> -->
				</tr>
				<tr class="bg" style="border-left: 2px solid #f37c20">
					<th colspan="16" style="font-size:15px; padding-left:18px;">简要描述</th>
				</tr>
				<tr style="text-align:left;">
					<td colspan="16" style="border-style:dashed solid solid;" title="${project.projectDesciption}">
					&nbsp;&nbsp;&nbsp;&nbsp;${project.projectDesciption}</td>
				</tr>
				<tr class="bg" style="border-left: 2px solid #f37c20">
					<th colspan="16" style="font-size:15px; padding-left:0px;vertical-align:top">
						<div style="left:0px;top:5px;position:relative;">
							<div align="center" style="left:0px;width:100%;position:absolute;">资源占用状态</div>
							<s:if test="#session.logUser.cityName == project.city">
							<div style="text-align:right;left:0px;width:99%;position:absolute;">
								<a href="javascript:modifyStatus();" style="text-decoration:underline">修改资源状态</a>
							</div>
							</s:if>
						</div>
					</th>
				</tr>
				<tr style="text-align:left;">
					<td colspan="16" style="border-style:dashed solid solid;">
						<div id="status1" class="status">预占(<s:property value="countMap['1']"></s:property>) <span id="span1"></span><img class="slide" src="images/status/slidedown.gif" /></div>
						<s:if test="castPrevList.size > 0">
						<div id="status1_content" class="status_content">
							<div class="content_left" style="float:left;">
								<table>
									<tr>
										<th style="width:50px;border-style: none dashed dashed none;">序号</th>
										<th style="width:270px;border-style: none dashed dashed none;">媒体刊列</th>
										<th style="width:150px;border-style: none dashed dashed none;">资源规模(RMB)</th>
										<th style="width:30px;border-style: none solid dashed none;"></th>
									</tr>
									<s:iterator id="prev" value="castPrevList" status="num">
									    <s:if test="#num.index+1==castPrevList.size">
										<tr>
										    <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#prev.proMedId}"/>
											<td style="border-style: none dashed none none;">${num.index+1}</td>
											<td style="border-style: none dashed none none;" title="${prev.mediumName}">${fn:substring(prev.mediumName, 0, 10) }</td>
											<td style="border-style: none dashed none none;"><fmt:formatNumber value='${prev.mediumTotalPrice}' maxFractionDigits ="3"/></td>
											<td style="border-style: none solid none none;">
												<img class="showDetail" src="images/status/arrow_right.gif" name="${prev.idForMed}" id="${prev.proMedId}" title="${prev.mediumStatus}"/>
											</td>
										</tr>
										</s:if>
										<s:else>
										<tr>
										    <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#prev.proMedId}"/>
											<td style="border-style: none dashed dashed none;">${num.index+1}</td>
											<td style="border-style: none dashed dashed none;" title="${prev.mediumName}">${fn:substring(prev.mediumName, 0, 10) }</td>
											<td style="border-style: none dashed dashed none;"><fmt:formatNumber value='${prev.mediumTotalPrice}' maxFractionDigits ="3"/></td>
											<td style="border-style: none solid dashed none;">
												<img class="showDetail" src="images/status/arrow_right.gif" name="${prev.idForMed}" id="${prev.proMedId}" title="${prev.mediumStatus}"/>
											</td>
										</tr>
										</s:else>
									</s:iterator>
								</table>
							</div>
							<div class="content_right" style="float:left;display:none;"></div>
						</div>
						</s:if>
						<div id="status2" class="status">呈批中 (<s:property value="countMap['2']"></s:property>) <span id="span2"></span>  <img class="slide" src="images/status/slidedown.gif" /></div>
						<s:if test="castPendList.size > 0">
						<div id="status2_content" class="status_content">
							<div class="content_left" style="float:left;">
								<table>
									<tr>
										<th style="width:50px;border-style: none dashed dashed none;">序号</th>
										<th style="width:270px;border-style: none dashed dashed none;">媒体刊列</th>
										<th style="width:150px;border-style: none dashed dashed none;">资源规模(RMB)</th>
										<th style="width:30px;border-style: none solid dashed none;"></th>
									</tr>
									<s:iterator id="pend" value="castPendList" status="num">
									    <s:if test="#num.index+1==castPendList.size">
										<tr>
										    <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#pend.proMedId}"/>
											<td style="border-style: none dashed none none;">${num.index+1}</td>
											<td style="border-style: none dashed none none;" title="${pend.mediumName}">${fn:substring(pend.mediumName, 0, 10) }</td>
											<td style="border-style: none dashed none none;"><fmt:formatNumber value='${pend.mediumTotalPrice}' maxFractionDigits ="3"/></td>
											<td style="border-style: none solid none none;">
												<img class="showDetail" src="images/status/arrow_right.gif" name="${pend.idForMed}" id="${pend.proMedId}" title="${pend.mediumStatus}"/>
											</td>
										</tr>
										</s:if>
										<s:else>
										<tr>
										    <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#pend.proMedId}"/>
											<td style="border-style: none dashed dashed none;">${num.index+1}</td>
											<td style="border-style: none dashed dashed none;" title="${pend.mediumName}">${fn:substring(pend.mediumName, 0, 10) }</td>
											<td style="border-style: none dashed dashed none;"><fmt:formatNumber value='${pend.mediumTotalPrice}' maxFractionDigits ="3"/></td>
											<td style="border-style: none solid dashed none;">
												<img class="showDetail" src="images/status/arrow_right.gif" name="${pend.idForMed}" id="${pend.proMedId}" title="${pend.mediumStatus}"/>
											</td>
										</tr>
										</s:else>
									</s:iterator>
								</table>
							</div>
							<div class="content_right" style="float:left;display:none;"></div>
						</div>
						</s:if>
						<div id="status3" class="status">占用 (<s:property value="countMap['3']"></s:property>) <span id="span3"></span> <img class="slide" src="images/status/slidedown.gif" /></div>
						<s:if test="castOccList.size > 0">
						<div id="status3_content" class="status_content">
						    <div class="content_left" style="float:left;">	
						        <table>
									<tr>
										<th style="width:50px;border-style: none dashed dashed none;">序号</th>
										<th style="width:270px;border-style: none dashed dashed none;">媒体刊列</th>
										<th style="width:150px;border-style: none dashed dashed none;">资源规模(RMB)</th>
										<th style="width:30px;border-style: none solid dashed none;"></th>
									</tr>
									<s:iterator id="occ" value="castOccList" status="num">
									    <s:if test="#num.index+1==castOccList.size">
										<tr>
										    <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#occ.proMedId}"/>
											<td style="border-style: none dashed none none;">${num.index+1}</td>
											<td style="border-style: none dashed none none;" title="${occ.mediumName}">${fn:substring(occ.mediumName, 0, 10) }</td>
											<td style="border-style: none dashed none none;"><fmt:formatNumber value='${occ.mediumTotalPrice}' maxFractionDigits ="3"/></td>
											<td style="border-style: none solid none none;">
												<img class="showDetail" src="images/status/arrow_right.gif" name="${occ.idForMed}" id="${occ.proMedId}" title="${occ.mediumStatus}"/>
											</td>
										</tr>
										</s:if>
										<s:else>
										<tr>
										    <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#occ.proMedId}"/>
											<td style="border-style: none dashed dashed none;">${num.index+1}</td>
											<td style="border-style: none dashed dashed none;" title="${occ.mediumName}">${fn:substring(occ.mediumName, 0, 10) }</td>
											<td style="border-style: none dashed dashed none;"><fmt:formatNumber value='${occ.mediumTotalPrice}' maxFractionDigits ="3"/></td>
											<td style="border-style: none solid dashed none;">
												<img class="showDetail" src="images/status/arrow_right.gif" name="${occ.idForMed}" id="${occ.proMedId}" title="${occ.mediumStatus}"/>
											</td>
										</tr>
										</s:else>
									</s:iterator>
								</table>
							</div>
							<div class="content_right" style="float:left;display:none;"></div>
						</div>
						</s:if>
						<div id="status4" class="status">完成投放 (<s:property value="countMap['4']"></s:property>) <span id="span4"></span><img class="slide" src="images/status/slidedown.gif" /></div>
						<s:if test="castFinPtList.size > 0">
						<div id="status4_content" class="status_content">
							<div class="content_left" style="float:left;">
						    	<table>
									<tr>
										<th style="width:50px;border-style: none dashed dashed none;">序号</th>
										<th style="width:270px;border-style: none dashed dashed none;">媒体刊列</th>
										<th style="width:150px;border-style: none dashed dashed none;">资源规模(RMB)</th>
										<th style="width:30px;border-style: none solid dashed none;"></th>
									</tr>
									<s:iterator id="finpt" value="castFinPtList" status="num">
									    <s:if test="%{#num.index+1==castFinPtList.size}">
										<tr>
										    <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#finpt.proMedId}"/>
											<td style="border-style: none dashed none none;">${num.index+1}</td>
											<td style="border-style: none dashed none none;" title="${finpt.mediumName}">${fn:substring(finpt.mediumName, 0, 10) }</td>
											<td style="border-style: none dashed none none;"><fmt:formatNumber value='${finpt.mediumTotalPrice}' maxFractionDigits ="3"/></td>
											<td style="border-style: none solid none none;">
												<img class="showDetail" src="images/status/arrow_right.gif" name="${finpt.idForMed}" id="${finpt.proMedId}" title="${finpt.mediumStatus}"/>
											</td>
										</tr>
										</s:if>
										<s:else>
										<tr>
										    <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#finpt.proMedId}"/>
											<td style="border-style: none dashed dashed none;">${num.index+1}</td>
											<td style="border-style: none dashed dashed none;" title="${finpt.mediumName}">${fn:substring(finpt.mediumName, 0, 10) }</td>
											<td style="border-style: none dashed dashed none;"><fmt:formatNumber value='${finpt.mediumTotalPrice}' maxFractionDigits ="3"/></td>
											<td style="border-style: none solid dashed none;">
												<img class="showDetail" src="images/status/arrow_right.gif" name="${finpt.idForMed}" id="${finpt.proMedId}" title="${finpt.mediumStatus}"/>
											</td>
										</tr>
										</s:else>
									</s:iterator>
								</table>
							</div>
							<div class="content_right" style="float:left;display:none;"></div>
						</div>
						</s:if>
						<div id="status5" class="status">完成结算(<s:property value="countMap['5']"></s:property>) <span id="span5"></span> <img class="slide" src="images/status/slidedown.gif" /></div>
						<s:if test="castFinStList.size > 0">
						<div id="status5_content" class="status_content">
							<div class="content_left" style="float:left;">
						    	<table>
									<tr>
										<th style="width:50px;border-style: none dashed dashed none;">序号</th>
										<th style="width:270px;border-style: none dashed dashed none;">媒体刊列</th>
										<th style="width:150px;border-style: none dashed dashed none;">资源规模(RMB)</th>
										<th style="width:30px;border-style: none solid dashed none;"></th>
									</tr>
									<s:iterator id="finst" value="castFinStList" status="num">
									    <s:if test="#num.index+1==castFinStList.size">
										<tr>
										    <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#finst.proMedId}"/>
											<td style="border-style: none dashed none none;">${num.index+1}</td>
											<td style="border-style: none dashed none none;" title=" ${finst.mediumName}">${fn:substring(finst.mediumName, 0, 10) }</td>
											<td style="border-style: none dashed none none;"><fmt:formatNumber value='${finst.mediumTotalPrice}' maxFractionDigits ="3"/></td>
											<td style="border-style: none solid none none;">
												<img class="showDetail" src="images/status/arrow_right.gif" name="${finst.idForMed}" id="${finst.proMedId}" title="${finst.mediumStatus}"/>
											</td>
										</tr>
										</s:if>
										<s:else>
										<tr>
										    <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#finst.proMedId}"/>
											<td style="border-style: none dashed dashed none;">${num.index+1}</td>
											<td style="border-style: none dashed dashed none;" title=" ${finst.mediumName}" >${fn:substring(finst.mediumName, 0, 10) }</td>
											<td style="border-style: none dashed dashed none;"><fmt:formatNumber value='${finst.mediumTotalPrice}' maxFractionDigits ="3"/></td>
											<td style="border-style: none solid dashed none;">
												<img class="showDetail" src="images/status/arrow_right.gif" name="${finst.idForMed}" id="${finst.proMedId}" title="${finst.mediumStatus}"/>
											</td>
										</tr>
										</s:else>
									</s:iterator>
								</table>
							</div>
							<div class="content_right" style="float:left;display:none;"></div>
						</div>
						</s:if>
						<div id="status6" class="status"  style="border-bottom:none;">中止 (<s:property value="countMap['6']"></s:property>) <span id="span6"></span> <img class="slide" src="images/status/slidedown.gif" /></div>
						<s:if test="castFinStList.size > 0">
						<div id="status6_content" class="status_content" style="border-bottom:none;border-top:1px solid gray;">
							<div class="content_left" style="float:left;">
						     <table>
									<tr>
										<th style="width:50px;border-style: none dashed dashed none;">序号</th>
										<th style="width:270px;border-style: none dashed dashed none;">媒体刊列</th>
										<th style="width:150px;border-style: none dashed dashed none;">资源规模(RMB)</th>
										<th style="width:30px;border-style: none solid dashed none;"></th>
									</tr>
									<s:iterator id="suspend" value="castSusList" status="num">
									    <s:if test="#num.index+1==castFinStList.size">
										<tr>
										    <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#suspend.proMedId}"/>
											<td style="border-style: none dashed none none;">${num.index+1}</td>
											<td style="border-style: none dashed none none;" title=" ${suspend.mediumName}" >${fn:substring(suspend.mediumName, 0, 10) }</td>
											<td style="border-style: none dashed none none;"><fmt:formatNumber value='${suspend.mediumTotalPrice}' maxFractionDigits ="3"/></td>
											<td style="border-style: none solid none none;">
												<img class="showDetail" src="images/status/arrow_right.gif" name="${suspend.idForMed}" id="${suspend.proMedId}" title="${suspend.mediumStatus}"/>
											</td>
										</tr>
										</s:if>
										<s:else>
										<tr>
										    <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#suspend.proMedId}"/>
											<td style="border-style: none dashed dashed none;">${num.index+1}</td>
											<td style="border-style: none dashed dashed none;" title=" ${suspend.mediumName}" >${fn:substring(suspend.mediumName, 0, 10) }</td>
											<td style="border-style: none dashed dashed none;"><fmt:formatNumber value='${suspend.mediumTotalPrice}' maxFractionDigits ="3"/></td>
											<td style="border-style: none solid dashed none;">
												<img class="showDetail" src="images/status/arrow_right.gif" name="${suspend.idForMed}" id="${suspend.proMedId}" title="${suspend.mediumStatus}"/>
											</td>
										</tr>
										</s:else>
									</s:iterator>
								</table>
						</div>
						<div class="content_right" style="float:left;display:none;"></div>
						</div>
						</s:if>
					</td>
				</tr>
				<tr class="bg" style="border-left: 2px solid #f37c20">
					<th colspan="16" style="font-size:15px; padding-left:18px;">变更记录</th>
				</tr>
				<tr style="text-align:left;">
					<td colspan="16">
						<ul>	
						    <s:iterator id="loglist" value="logList" var="log">
							   <li style="height:30px; line-height:30px;">
							        &nbsp;&nbsp;&nbsp;&nbsp;<s:property value="#log.content"/> 
							   </li>
							</s:iterator>
						</ul>
					</td>
				</tr>
			  </table>
			</div>
		</div>
		</div>
	</div>
<!-- 顶部end -->


<!-- 底部start -->
<div id="bottom">
	<div class="body">
		<label>版权所有&nbsp;&nbsp;&nbsp;&nbsp;2012东莞移动</label>
	</div>
</div>
<!-- 底部end -->

<!-- 弹出框start -->
<div id="popupDialog">
	<form action="modCastStatus.action" name="updateForm">
	<input type="hidden" name="projectMedium.projectID" value="${projectId}"/>
	<input type="hidden" name="projectId" value="${projectId}"/>
	<input type="hidden" id="projMedId" name="projectMedium.proMedID"/>
	<input type="hidden" id="castDetailstatus" name="castDetailstatus"/>
	<div class="title">
		<table>
			<tr>
				<th align="left">当前计划投放的媒体刊例资源：</th>
				<th>
					状态变更为：
					<select name="newStatus">
						<option value="1">预占</option>
						<option value="2">呈批中</option>
						<option value="3">占用</option>
						<option value="4">完成投放</option>
						<option value="5">完成结算</option>
						<option value="6">中止</option>
					</select>
				</th>
				<th align="right">
					<a href="#" onclick="gotoAddcast();">增加新投放排期</a>
				</th>
			</tr>
		</table>
	</div>
	<div class="body">
		<div class="content_left" style="float:left;">
			<table>
				<tr>
					<th style="width:50px;border-style: none dashed dashed none;">序号</th>
					<th style="width:270px;border-style: none dashed dashed none;">媒体刊列</th>
					<th style="width:150px;border-style: none dashed dashed none;">资源规模(RMB)</th>
					<th style="width:30px;border-style: none dashed dashed none;"></th>
					<th style="width:30px;border-style: none dashed dashed none;"></th>
				</tr>
				<s:if test='%{curStatus=="1"}'>
				<s:iterator id="castCur" value="castPrevList" status="num">
				   <tr>
				        <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#castCur.proMedId}"/>
						<td style="border-style: none dashed dashed none;">${num.index+1}</td>
						<td style="border-style: none dashed dashed none;" title="${castCur.mediumName}" >${fn:substring(castCur.mediumName, 0, 10) } </td>
						<td style="border-style: none dashed dashed none;"><fmt:formatNumber value='${castCur.mediumTotalPrice}' maxFractionDigits ="3"/></td>
						<td style="border-style: none dashed dashed none;">
							<img class="delete" src="images/status/delete.gif" name="${castCur.proMedId}" />
						</td>
						<td style="border-style: none solid dashed none;">
							<img class="showDetail" src="images/status/arrow_right.gif" name="${castCur.idForMed}" id="${castCur.proMedId}" title="${castCur.mediumStatus}"/>
						</td>
				   </tr>  
				</s:iterator>
				   <tr>
				       <td colspan="2"  style="border-style: none dashed none none;">小计：</td>
					   <td colspan="3"  style="border-style: none none none none;color:red;"><fmt:formatNumber value='${sumMap["1"]}' maxFractionDigits ="3"/></td>
				   </tr>
				</s:if>
				<s:elseif test='%{curStatus=="2"}'>
				   <s:iterator id="castCur" value="castPendList" status="num">
				   <tr>
				        <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#castCur.proMedId}"/>
						<td style="border-style: none dashed dashed none;">${num.index+1}</td>
						<td style="border-style: none dashed dashed none;" title="${castCur.mediumName}">${fn:substring(castCur.mediumName, 0, 10) } </td>
						<td style="border-style: none dashed dashed none;"><fmt:formatNumber value='${castCur.mediumTotalPrice}' maxFractionDigits ="3"/></td>
						<td style="border-style: none dashed dashed none;">
							<img class="delete" src="images/status/delete.gif" name="${castCur.proMedId}" />
						</td>
						<td style="border-style: none solid dashed none;">
							<img class="showDetail" src="images/status/arrow_right.gif" name="${castCur.idForMed}" id="${castCur.proMedId}" title="${castCur.mediumStatus}"/>
						</td>
				   </tr>
				</s:iterator>
				   <tr>
				       <td colspan="2"  style="border-style: none dashed none none;">小计：</td>
					   <td colspan="3"  style="border-style: none none none none;color:red;"><fmt:formatNumber value='${sumMap["2"]}' maxFractionDigits ="3"/></td>
				   </tr>
				</s:elseif>
				<s:elseif test='%{curStatus=="3"}'>
				   <s:iterator id="castCur" value="castOccList" status="num">
				   <tr>
				        <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#castCur.proMedId}"/>
						<td style="border-style: none dashed dashed none;">${num.index+1}</td>
						<td style="border-style: none dashed dashed none;" title="${castCur.mediumName}">${fn:substring(castCur.mediumName, 0, 10) } </td>
						<td style="border-style: none dashed dashed none;"><fmt:formatNumber value='${castCur.mediumTotalPrice}' maxFractionDigits ="3"/></td>
						<td style="border-style: none dashed dashed none;">
							<img class="delete" src="images/status/delete.gif" name="${castCur.proMedId}" />
						</td>
						<td style="border-style: none solid dashed none;">
							<img class="showDetail" src="images/status/arrow_right.gif" name="${castCur.idForMed}" id="${castCur.proMedId}" title="${castCur.mediumStatus}"/>
						</td>
				   </tr>
				</s:iterator>
				 <tr>
				      <td colspan="2"  style="border-style: none dashed none none;">小计：</td>
					  <td colspan="3"  style="border-style: none none none none;color:red;"><fmt:formatNumber value='${sumMap["3"]}' maxFractionDigits ="3"/></td>
				 </tr>
				</s:elseif>
				<s:elseif test='%{curStatus=="4"}'>
				   <s:iterator id="castCur" value="castFinPtList" status="num">
				   <tr>
				        <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#castCur.proMedId}"/>
						<td style="border-style: none dashed dashed none;">${num.index+1}</td>
						<td style="border-style: none dashed dashed none;" title="${castCur.mediumName}">${fn:substring(castCur.mediumName, 0, 10) } </td>
						<td style="border-style: none dashed dashed none;"><fmt:formatNumber value='${castCur.mediumTotalPrice}' maxFractionDigits ="3"/></td>
						<td style="border-style: none dashed dashed none;">
							<img class="delete" src="images/status/delete.gif" name="${castCur.proMedId}" />
						</td>
						<td style="border-style: none solid dashed none;">
							<img class="showDetail" src="images/status/arrow_right.gif" name="${castCur.idForMed}" id="${castCur.proMedId}" title="${castCur.mediumStatus}"/>
						</td>
				   </tr>
				   
				</s:iterator>
				   <tr>
				       <td colspan="2"  style="border-style: none dashed none none;">小计：</td>
					   <td colspan="3"  style="border-style: none none none none;color:red;"><fmt:formatNumber value='${sumMap["4"]}' maxFractionDigits ="3"/></td>
				   </tr>
				</s:elseif>
				<s:elseif test='%{curStatus=="5"}'>
				   <s:iterator id="castCur" value="castFinStList" status="num">
				   <tr>
				        <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#castCur.proMedId}"/>
						<td style="border-style: none dashed dashed none;">${num.index+1}</td>
						<td style="border-style: none dashed dashed none;" title="${castCur.mediumName}">${fn:substring(castCur.mediumName, 0, 10) } </td>
						<td style="border-style: none dashed dashed none;"><fmt:formatNumber value='${castCur.mediumTotalPrice}' maxFractionDigits ="3"/></td>
						<td style="border-style: none dashed dashed none;">
							<img class="delete" src="images/status/delete.gif" name="${castCur.proMedId}" />
						</td>
						<td style="border-style: none solid dashed none;">
							<img class="showDetail" src="images/status/arrow_right.gif" name="${castCur.idForMed}" id="${castCur.proMedId}" title="${castCur.mediumStatus}"/>
						</td>
				   </tr>  
				</s:iterator>
				   <tr>
				       <td colspan="2"  style="border-style: none dashed none none;">小计：</td>
					   <td colspan="3"  style="border-style: none none none none;color:red;"><fmt:formatNumber value='${sumMap["5"]}' maxFractionDigits ="3"/></td>
				   </tr>
				</s:elseif>
				<s:elseif test='%{curStatus=="6"}'>
				   <s:iterator id="castCur" value="castSusList" status="num">
				   <tr>
				        <s:checkbox cssStyle="display:none" name="projMedIds" value="true" fieldValue="%{#castCur.proMedId}"/>
						<td style="border-style: none dashed dashed none;">${num.index+1}</td>
						<td style="border-style: none dashed dashed none;" title="${castCur.mediumName}">${fn:substring(castCur.mediumName, 0, 10) } </td>
						<td style="border-style: none dashed dashed none;"><fmt:formatNumber value='${castCur.mediumTotalPrice}' maxFractionDigits ="3"/></td>
						<td style="border-style: none dashed dashed none;">
							<img class="delete" src="images/status/delete.gif" name="${castCur.proMedId}" />
						</td>
						<td style="border-style: none solid dashed none;">
							<img class="showDetail" src="images/status/arrow_right.gif" name="${castCur.idForMed}" id="${castCur.proMedId}" title="${castCur.mediumStatus}"/>
						</td>
				   </tr>
				</s:iterator>
				<tr>
				     <td colspan="2"  style="border-style: none dashed none none;">小计：</td>
					 <td colspan="3"  style="border-style: none none none none;color:red;"><fmt:formatNumber value='${sumMap["6"]}' maxFractionDigits ="3"/></td>
				</tr>
				</s:elseif>
				
			</table>
		</div>
		<div class="content_right" style="float:left;display:none;"></div>
	</div>
	</form>
</div>
<!-- 弹出框end -->

<div id="detail_Med" style="visibility:hidden;">
	<table>
		<tr>
			<th style="width:150px;border-style: none dashed none none;">名称</th>
			<th style="width:150px;border-style: none dashed none none;">规格</th>
			<th style="width:150px;border-style: none dashed none none;">格式</th>
			<th style="width:150px;border-style: none none none none;">栏目</th>
		</tr>
		<tr>
			<td id="value1" style="border-style: none dashed none none;"></td>
			<td id="value2" style="border-style: none dashed none none;"></td>
			<td id="value3" style="border-style: none dashed none none;"></td>
			<td id="value4" style="border-style: none none none none;"></td>
		</tr>
		<tr>
			<th  style="border-style: none dashed none none;">版面</th>
			<th  style="border-style: none dashed none none;">位置</th>
			<th  style="border-style: none dashed none none;">刊例价</th>
			<th  style="border-style: none none none none;">投放次数</th>
		</tr>
		<tr>
			<td id="value5" style="border-style: none dashed none none;"></td>
			<td id="value6" style="border-style: none dashed none none;"></td>
			<td id="value7" style="border-style: none dashed none none;"></td>
			<td id="value8" style="border-style: none none none none;"></td>
		</tr>
	</table>
</div>

</body>
</html>

